# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         hw03
# Description:
# Author:       98745
# Date:         2019/1/17
#-------------------------------------------------------------------------------


a = 1
b = 1
y = 1
x=int(input("请输入行数（必须是奇数）："))
m=x
while a<=x:
    while y<=(x-a)/2:
        print(" ",end="")
        y=y+1
    while b<=a:
        print("*",end="")
        b=b+1
    print("\n")
    a=a+2
    b=1
    y=1
x=x-2
c=-1
d=1
while x>=-1:
    while d<=(m-x)/2:
        print(" ",end="")
        d=d+1
    while c<=x-2:
        print("*",end="")
        c=c+1
    print("\n")
    x=x-2
    c=-1
    d=1


